import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/custComBaseinfo',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'api/custComBaseinfo/' + id,
    method: 'delete'
  })
}

export function edit(data) {
  return request({
    url: 'api/custComBaseinfo',
    method: 'put',
    data
  })
}

export function list(params) {
	return request({
	  url: 'api/custComBaseinfo',
	  method: 'get',
	  params
	})
  }

  export function general(id) {
	return request({
	  url: 'api/custComBaseinfo/' + id,
	  method: 'get'
	})
  }

  export function credentials(params) {
	return request({
	  url: 'api/custComBaseinfo/custComCertificateInfo',
	  method: 'get',
	  params
	})
  }

  export function addCredentials(data) {
	return request({
	  url: 'api/custComBaseinfo/custComCertificateInfo',
	  method: 'post',
	  data
	})
  }

  export function effective(data) {
	return request({
	  url: 'api/custComBaseinfo/custComCertificateInfo',
	  method: 'put',
	  data
	})
  }

  export function executive(params) {
	return request({
	  url: '/api/custComBaseinfo/custComManagerInfo',
	  method: 'get',
	  params
	})
  }
  
  export function executiveDetails(id) {
	return request({
	  url: 'api/custComBaseinfo/custComManagerInfo/' + id,
	  method: 'get'
	})
  }
 
  export function loan(params) {
	return request({
	  url: 'api/custComBaseinfo/custComLoanInfo',
	  method: 'get',
	  params
	})
  }

  export function loanDetails(id) {
	return request({
	  url: 'api/custComBaseinfo/custComLoanInfo/' + id,
	  method: 'get'
	})
  }
  
  export function shareholder(params) {
	return request({
	  url: 'api/custComBaseinfo/custComShareholderInfo',
	  method: 'get',
	  params
	})
  }

  export function shareholderDetails(id) {
	return request({
	  url: 'api/custComBaseinfo/custComShareholderInfo/' + id,
	  method: 'get'
	})
  }


  export function litigation(params) {
	return request({
	  url: 'api/custComBaseinfo/custComLitigationInfo',
	  method: 'get',
	  params
	})
  }

  export function litigationDetails(id) {
	return request({
	  url: 'api/custComBaseinfo/custComLitigationInfo/' + id,
	  method: 'get'
	})
  }


  export function commerce(id) {
	return request({
	  url: 'api/custComBaseinfo/custComCommerceInfo/' + id,
	  method: 'get'
	})
  }

  export function change(params) {
	return request({
	  url: 'api/custComBaseinfo/custComIcChangelist',
	  method: 'get',
	  params
	})
  }

  export function finance(params) {
	return request({
	  url: 'api/custComBaseinfo/custComFinanceList',
	  method: 'get',
	  params
	})
  }

  export function upload(data) {
	return request({
	  url: 'api/custComBaseinfo/custComFinanceList/upload',
	  method: 'post',
	  data,
	  type:"1"
	  
	})
  }




  export function debt(params) {
	return request({
	  url: 'api/custComBaseinfo/custComFinanceBaseinfo',
	  method: 'get',
	  params
	})
  }
  export function assets(params) {
	return request({
	  url: 'api/custComBaseinfo/custComFinanceList/itemHtml',
	  method: 'get',
	  params
	})
  }

  export function finanalysis(params) {
	return request({
	  url: '/api/custComBaseinfo/custCreditAnalysisInfo',
	  method: 'get',
	  params
	})
  }

  export function finanalysisDetails(id) {
	return request({
	  url: 'api/custComBaseinfo/custCreditAnalysisInfo/' + id,
	  method: 'get'
	})
  }
  

  export function industry(params) {
	return request({
	  url: '/api/custComBaseinfo/custIndustryAnalysis/list',
	  method: 'get',
	  params
	})
  }

  export function industryinfo(params) {
	return request({
	  url: '/api/custComBaseinfo/custIndustryAnalysis/info',
	  method: 'get',
	  params
	})
  }

  export function loananalysis(id) {
	return request({
	  url: 'api/custComBaseinfo/custRiskAnalysis/' + id,
	  method: 'get'
	})
  }

  export function risklist(params) {
	return request({
	  url: '/api/custComBaseinfo/custRiskAnalysis/list',
	  method: 'get',
	  params
	})
  }